'use strict'
const Service = require('egg').Service;
class judservice extends Service {
  async judgrades (stuid) {
    var flag;
    const rs = await this.app.mysql.select('grades', { where: { 'id': stuid } });
    if (rs.length == 0) {
      flag = true;
    } else {
      flag = false;
    }
    return flag;
  }
}
module.exports = judservice;